package cn.edu.scau.cmi.ema.service;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Address;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface AddressService {

	public Address saveAddress(Address address);

	public Set<Address> loadAddresss();

	public Set<Address> loadReferenceAddresss(Set<Address> addresss);

	public Set<Address> loadAddresssByIdSet(Set<Integer> addresssId);

	public Map<String, ?> loadAddressObjectReferencedSet(Address address);

	public Map<String, ?> loadAddressClassReferencedSet(Address address);

	public void deleteAddress(Address address);

	public void deleteAddresss(Set<Integer> deleteAddresssId);

	public List<Address> findAllAddresss(Integer startResult, Integer maxRows);

	public Address findAddressByPrimaryKey(Integer id);

	public Integer countAddresss();

	public Integer countAddresss(CmiPagination page);

	public Integer countAddresssByName(String queryName);

	public Integer countAddresssByDetachedCriteria(CmiPagination page);

}
